package com.ruoyi.suggestion.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 建议投票统计结果
 *
 * @author
 * @date 2025-05-10
 */
public class suggestVote extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 建议ID */
    @Excel(name = "建议ID")
    private Long id;

    /** 建议名称 */
    @Excel(name = "建议名称")
    private String title;

    /** 支持数 */
    @Excel(name = "支持数")
    private Integer supportCount;

    /** 反对数 */
    @Excel(name = "反对数")
    private Integer opposeCount;

    /** 建议内容 */
    @Excel(name = "建议内容")
    private String content;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getSupportCount() {
        return supportCount;
    }

    public void setSupportCount(Integer supportCount) {
        this.supportCount = supportCount;
    }

    public Integer getOpposeCount() {
        return opposeCount;
    }

    public void setOpposeCount(Integer opposeCount) {
        this.opposeCount = opposeCount;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("title", getTitle())
                .append("supportCount", getSupportCount())
                .append("opposeCount", getOpposeCount())
                .append("content", getContent())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
